package com.insurance.service;

import com.insurance.common.ResultData;
import com.insurance.pojo.PayInfo;
import com.insurance.pojo.Refund;

/**
 * Created with IntelliJ IDEA.
 * User: 朱雄
 * Date: 2020/10/31 17:17
 * Description:
 * Version: V1.0
 */
public interface OrderPayService {
    /**
     * 付款
     * @param payInfo
     * @return
     */
    ResultData updatePayOrder(PayInfo payInfo);

    /**
     * 退款成功
     * @param payInfo
     * @return
     */
    ResultData updateRefund(PayInfo payInfo);

    /**
     * 查询所有退款订单
     * @return
     * @param orderStart
     */
    ResultData queryRefundOrder(Integer orderStart);
    /**
     * 用户申请退款
     * @param refund
     * @return
     */
    ResultData addApplyRefundByOrder(Refund refund);

    ResultData noAgreeExitPayOrder(Refund refund);
    ResultData updateSuceessPayOrder(PayInfo payInfo);


}
